package com.lhz.project.system.model.param.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 参数类
 *
 * @author LiHuaZhi
 * @since 2020-06-13 20:52:33
 */
@Data
@Schema(description = "用户管理参数")
public class UserParam implements Serializable {

    @Serial
    private static final long serialVersionUID = -14003610919732795L;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String id;

    @Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "账户", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer deptId;

    @Schema(description = "头像图片路径", requiredMode = Schema.RequiredMode.REQUIRED)
    private String avatar;

    @Schema(description = "用户性别（0男 1女 2未知）", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer gender;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String mobile;

    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
    private String mail;

    @Schema(description = "角色", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Integer> roleIds;

}